<template>
    <!-- 医院介绍弹窗 -->
    <div class="hospitalIntDialog">
        <el-dialog
            :close-on-click-modal="false"
            v-model="isShow.value"
            :show-close="false"
            @close="emit('handelDialogClose')"
        >
            <i class="close iconfont icon-guanbi" @click="emit('closeDialog')"></i>
            <div class="content">
                <div class="title">医院简介</div>
                <el-scrollbar height="500px">
                    <div class="detail" v-html="props.hospitalInfo.describe" />
                </el-scrollbar>
            </div>
        </el-dialog>
    </div>
</template>
<script setup>
/* eslint-disable */

    import { reactive,toRefs, defineProps, defineEmits,onMounted } from 'vue'
    import { getHospital } from '@/api/hosInfo'
    import { ElDialog, ElScrollbar } from 'element-plus'
    import { getUrlQueryData } from '@/utils/tools'
    const props = defineProps({
        hospitalDialogShow:Boolean,
        hospitalInfo:Object
    })
    const isShow = reactive({
        get value(){ 
            return props.hospitalDialogShow;
        },
        set value(v){
            return ;
        }
    })
    const { hospitalDialogShow } = toRefs(props)
    const emit = defineEmits(["closeDialog","handelDialogClose"])

</script>
<style scoped>
.hospitalIntDialog >>> .el-dialog {
  background-color: #fff;
  color: #000;
  box-shadow: none;
  width: 960px;
}
.hospitalIntDialog >>> .el-dialog__header {
    padding: 0;
}
.hospitalIntDialog >>> .el-dialog__body {
  color: #000;
  padding: 40px 0 0;
  height: 100%;
  box-sizing: border-box;
}
.hospitalIntDialog .close {
  font-size: 24px;
  color: #717378;
  position: absolute;
  right: 20px;
  top: 20px;
  cursor: pointer;
}
.hospitalIntDialog .close:hover {
    color: #1F73F2;
}
.hospitalIntDialog .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 80px;
  height: 100%;
  box-sizing: border-box;
}
.content >>> .el-scrollbar__bar.is-vertical {
  width: 8px;
  right: 20px;
  background-color: rgba(170, 170, 170, 0.5)
}
.content >>> .el-scrollbar__bar.is-horizontal {
  display: none;
}
.content >>> .el-scrollbar__bar.is-vertical>div {
  background-color: #1F73F2;
  opacity: 1;
}
.hospitalIntDialog .content .title {
    font-size: 24px;
    color: #000;
    margin-bottom: 36px;
    text-align: center;
}

.hospitalIntDialog .content .detail {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
  padding: 0 80px;
}

.hospitalIntDialog .content .check_detail {
  margin-top: 25px;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 10px 16px;
}

.hospitalIntDialog .content .check_detail:hover {
  cursor: pointer;
  color: #ffd706;
  border-color: #ffd706;
}
@media screen and (max-width: 1360px) and  (min-width: 1024px) {
    .hospitalIntDialog >>> .el-dialog {
        transform: scale(0.8);
        transition:transform 0.3s linear;
    }
}
@media screen and (max-width: 1024px) {
    .hospitalIntDialog >>> .el-overlay {
        z-index: 10001 !important;
    }
    .hospitalIntDialog >>> .el-dialog {
        /* width: 360px; */
        /* height: 748px; */
        width: 95%;
        height: 95%;
        margin: auto;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 4px 4px 0 0;
    }
    .hospitalIntDialog >>> .el-dialog__body {
        padding: 20px 0 0;
    }
    .hospitalIntDialog .content {
        padding-bottom: 30px;
    }
    .hospitalIntDialog .content .detail {
        padding: 0 30px;
    }
    .hospitalIntDialog >>> .el-scrollbar__wrap {
        height:100% !important;
    }
    .content >>> .el-scrollbar__bar.is-vertical {
        right: 10px;
    }
    .hospitalIntDialog .content .title {
        font-size: 18px;
        margin-bottom: 30px ;
    }
    .hospitalIntDialog .close {
        font-size: 16px;
    }
}
</style>